# This file is part of BlackArch Linux ( https://www.blackarch.org/ ).
# See COPYING for license details.

pkgname=vstt
pkgver=0.5.3
pkgrel=1
groups=('blackarch' 'blackarch-tunnel')
pkgdesc='VSTT is a multi-protocol tunneling tool. It accepts input by TCP stream sockets and FIFOs, and can send data via TCP, POP3, and ICMP tunneling.'
arch=('x86_64' 'aarch64')
url='http://www.wendzel.de/dr.org/files/Projects/vstt/'
license=('BSD')
source=("http://www.wendzel.de/dr.org/files/Projects/$pkgname/$pkgname-$pkgver.tgz")
sha512sums=('db2704303b91c7a5e510f0c003a6ec84a0fa8e418276d69b12bebc8b67e3a882e0c84e40e67ee0bdd4253fc0539e45a0212c626705d8c483b6e724a509aefe79')

build() {
  cd $pkgname

  make
}

package() {
  cd $pkgname

  install -Dm 755 $pkgname "$pkgdir/usr/bin/$pkgname"
  install -Dm 755 reader "$pkgdir/usr/bin/$pkgname-reader"
  install -Dm 755 s2f "$pkgdir/usr/bin/$pkgname-s2f"
  install -Dm 644 -t "$pkgdir/usr/share/doc/$pkgname/" AUTHOR README CHANGELOG \
    TODO
  install -Dm 644 LICENSE "$pkgdir/usr/share/licenses/$pkgname/LICENSE"
}

